package doudou.pojo;

import java.io.Serializable;

public class MobileCard implements Serializable {
    String cardNumber; //电话号码
    String userName;  //用户名
    String passWord;  //密码
    ServicePackage serPackage;
    double consumAmount; //消费金额
    double money;  //余额
    int realTalkTime;  //通话时间
    int realSMSCount; // 短信数量
    int realFlow; //流量

    public void showMeg(){
        System.out.println("电话号码:"+cardNumber);
        System.out.println("用户名:"+userName);
        System.out.println("密码:"+passWord);
        System.out.println("消费金额:"+consumAmount);
        System.out.println("余额:"+money);
        System.out.println("通话时间:"+realTalkTime);
        System.out.println("短信数量:"+realSMSCount);
        System.out.println("流量:"+realFlow);
    }

    public MobileCard(String cardNumber, String userName, String passWord, ServicePackage serPackage, double consumAmount, double money, int realTalkTime, int realSMSCount, int realFlow) {
        this.cardNumber = cardNumber;
        this.userName = userName;
        this.passWord = passWord;
        this.serPackage = serPackage;
        this.consumAmount = consumAmount;
        this.money = money;
        this.realTalkTime = realTalkTime;
        this.realSMSCount = realSMSCount;
        this.realFlow = realFlow;
    }

    public String getCardNumber() {
        return cardNumber;
    }

    public void setCardNumber(String cardNumber) {
        this.cardNumber = cardNumber;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getPassWord() {
        return passWord;
    }

    public void setPassWord(String passWord) {
        this.passWord = passWord;
    }

    public ServicePackage getSerPackage() {
        return serPackage;
    }

    public void setSerPackage(ServicePackage serPackage) {
        this.serPackage = serPackage;
    }

    public double getConsumAmount() {
        return consumAmount;
    }

    public void setConsumAmount(double consumAmount) {
        this.consumAmount = consumAmount;
    }

    public double getMoney() {
        return money;
    }

    public void setMoney(double money) {
        this.money = money;
    }

    public int getRealTalkTime() {
        return realTalkTime;
    }

    public void setRealTalkTime(int realTalkTime) {
        this.realTalkTime = realTalkTime;
    }

    public int getRealSMSCount() {
        return realSMSCount;
    }

    public void setRealSMSCount(int realSMSCount) {
        this.realSMSCount = realSMSCount;
    }

    public int getRealFlow() {
        return realFlow;
    }

    public void setRealFlow(int realFlow) {
        this.realFlow = realFlow;
    }

    @Override
    public String toString() {
        return "MobileCard{" +
                "cardNumber='" + cardNumber + '\'' +
                ", userName='" + userName + '\'' +
                ", passWord='" + passWord + '\'' +
                ", serPackage=" + serPackage +
                ", consumAmount=" + consumAmount +
                ", money=" + money +
                ", realTalkTime=" + realTalkTime +
                ", realSMSCount=" + realSMSCount +
                ", realFlow=" + realFlow +
                '}';
    }
}
